<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- for="(值,键,索引) in 原对象" -->
        <ul v-for="(u,k,i) in user">-
            <li>{{u}} ---{{k}}-----{{i}}</li>
        </ul>
        <ul>
            <li v-for="item in user.name">{{item}}</li>
        </ul>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
		<script type="text/javascript">
			/* 创建vue实例 */
			var vm=new Vue({
				el:"#app",
				data:{
					user:{
						name:"刘帅",
						sex:"男",
						hobby:"象棋"
					}
				}
			})
		</script>
    
</body>
</html>